<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		array = ['a','b','c','a','d','e','c','f','d'];
	
	var arr = [];
	function Run() {
		arr[0] = array[0];
	 	for(var i=1;i<=array.length;i++){ 
			for (var k = 0; k < array.length; k++) {
				if (arr[k]==array[i]) {
					he = 1;
					break;
				}else{
					he = 0;
				}
			}
			if(he==0){
				arr.push(array[i]);
			}


		}
     	return arr;
	}
	 
var arr = Run(); 
 alert(arr);
 document.write(arr);



	</script>
</head>
<body>
	   
</body>
</html>